﻿@model Rated.Website.Models.ViewPageViewModel
    <button id="btnAddReview" class="cta2 floatright">
        Write a review</button>
    <div id="AddReviewPanel" >
        <h3>Add a Review</h3>
        <div id="addReviewForm" class="form">
        <form method="post" id="addReview" action="@Url.Action("Add", "Review")"> 
        @{
            int OwnerID = WebSecurity.IsAuthenticated ? WebSecurity.CurrentUserId : 0;
            int RatedItemID = Model.Item.ID;
            
            }
        @Html.HiddenFor(o => OwnerID)
        @Html.HiddenFor(o => RatedItemID)
        <ol>
            <li class="clearfix">
            <label>Rating</label>
            @Html.TextBox("Rating")
            </li>

            <li class="clearfix">
            <label>Title</label>
            @Html.TextBox("Title")
            </li>

           <li class="clearfix">
            <label>Description</label>
            @Html.TextArea("Description")
           </li>
           </ol>
         <button id="btnPostNewReview" class="cta2 floatright">
        Add</button>
        </form>
        </div>
        <div class="clearfix">
        <button id="btnCancelReview" class="cancel floatright">
            Forget it</button>
            </div>
    </div>
